package gtc.edu.ybt.demo.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.SessionAttributes;

import gtc.edu.ybt.demo.service.SysUserService;

@Controller
@SessionAttributes(value = {"user"})
public class MainController {
	@Autowired
	private SysUserService userService;
	
	@RequestMapping(value = {"/","/login"},method = RequestMethod.GET)
	public String login() {
		return "login";
	}
	
	@RequestMapping(value = "/main")
	public String main() {
		return "main";
	}
	
	@RequestMapping(value = "/stuMain")
	public String stuMain() {
		return "main1";
	}
	
}
